<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>事件及简写v-on</title>
</head>
<script src="js/vue.js"></script>
<script>
    window.onload = function () {
        new Vue({
            el: '#app',
            data: {
            },
            methods: {
                show() {
                    console.log(111);
                },
                print(e){
                    console.log(e.target.innerHTML);
                    console.log(e);
                }
            }
        })
    }
</script>

<body>
    <div id="app">
        <button @click="show">点击事件</button>
       <button @click="print($event)">点击事件$</button>
    </div>
</body>

</html>